package edu.sdust.ssmstudy.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * Created by pengcai
 * Date:2017/7/27.
 * Time:15:48:48
 */
public class GsonFactory {
    public static Gson getDefaultDateFormatGson(){
        return new GsonBuilder().setDateFormat("yyyy-MM-dd").create();
    }

    public static Gson getDateFormatGson(String pattern){
        return new GsonBuilder().setDateFormat(pattern).create();
    }
}
